package com.itcast.test;


import com.itcast.service.BookService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testMethod {

    @Test
    public void testFindAll(){

        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("spring.xml");

        BookService bookService = ac.getBean("bookServiceImpl", BookService.class);

        bookService.findAll();
    }

}
